<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TransferDialog.aspx.vb" Inherits="MIMS_WRS.Web.TransferDialog" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>TransferDialog</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../Js/function.js" type="text/JavaScript"></script>
		<script language="JavaScript" src="../Js/EventCapture.js" type="text/JavaScript"></script>
		<script language="JavaScript" src="../js/common.js" type="text/JavaScript"></script>
	</HEAD>
	<body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
		<form id="Form1" method="post" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" align="center">
						<table class="border1" height="100%" cellSpacing="2" cellPadding="2" width="100%" border="0">
							<tr vAlign="top">
								<td vAlign="top" align="center" bgColor="#f9f9f9">
									<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
										<TBODY>
											<TR class="bgmenu">
												<TD align="center" width="100%" height="30"><strong>Quantity Transfer by PO </strong>
												</TD>
											</TR>
											<TR>
												<TD align="center" height="30"><asp:repeater id="repTrans" runat="server">
														<HeaderTemplate>
															<TABLE class="txtnormal" width="90%" border="0" cellPadding="3" cellSpacing="0" bgcolor="#f9f9f9">
																<thead>
																	<TR class="txtcolor1s">
																		<TD height="35">Quantity Transferred by PO
																		</TD>
																		<TD>Last Update</TD>
																		<td>Quantity Ordered</td>
																	</TR>
																</thead>
																<tbody>
														</HeaderTemplate>
														<ItemTemplate>
															<TR class="txtnormal">
																<TD width="50%"><table border="0" cellspacing="0" cellpadding="0">
																		<tr>
																			<td width="80" class="txtnormal" ><%# DataBinder.Eval(Container, "DataItem.PONumber") %></td>
																			<td width="10" class="txtnormal">:</td>
																			<td><asp:TextBox  MaxLength="5"  ID="txtQuantity" Width="50" Runat="server"  CssClass="numerictxtsmall" onkeypress="NumberOnly(0)" Text='<%# DataBinder.Eval(Container, "DataItem.Quantity") %>' ></asp:TextBox><SPAN class="txthighlight"><STRONG>*</STRONG></SPAN>
																				<asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" CssClass="txthighlight" Display="Dynamic"
																					ErrorMessage="Missing quantity" ControlToValidate="txtQuantity">required</asp:requiredfieldvalidator><asp:comparevalidator id="comvQuantity" runat="server" CssClass="txthighlight" Display="Dynamic" ErrorMessage="Invalid format"
																					ControlToValidate="txtQuantity" Operator="GreaterThanEqual" ValueToCompare="0" Type="Integer">must >= 0</asp:comparevalidator>
																				<asp:RangeValidator id="rVQuantityTranferred" Enabled="True" ControlToValidate="txtQuantity" runat="server" CssClass="txthighlight" Display="Dynamic" Type="Integer" MinimumValue="0" MaximumValue='<%# DataBinder.Eval(Container, "DataItem.QuantityOrdered") %>' ErrorMessage="out of range"></asp:RangeValidator>	
																			</td>
																		</tr>
																	</table>
																</TD>
																<TD width="25%"  ><%# DataBinder.Eval(Container, "DataItem.LastQuantity") %></TD>
																<td width="25%" ><%# DataBinder.Eval(Container, "DataItem.QuantityOrdered") %></td>
															</TR>
														</ItemTemplate>
														<FooterTemplate>
										</TBODY>
									</TABLE>
									</FooterTemplate> </asp:repeater></td>
							</tr>
						</table>
						<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
							<TR class="txtnormal">
								<TD class="txtsmall" align="center" height="50"><asp:button id="btnSave" runat="server" Text="Save" CssClass="button"></asp:button>&nbsp;<asp:button id="btnReset" runat="server" Text="Reset" CssClass="button" CausesValidation="False"></asp:button>&nbsp;<input class="button" onclick="window.parent.close();" type="button" value="Cancel" name="Submit22">
								</TD>
							</TR>
						</TABLE>
					</td>
				</tr>
			</table>
			</TD></TR></TBODY></TABLE></form>
	</body>
</HTML>
